package com.hxhy.log;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;

public class LogFilter extends Filter<ILoggingEvent>{

	@Override
	public FilterReply decide(ILoggingEvent event) {
        if(event.getLevel().levelStr.equals("INFO")&&event.getLoggerName().contains("com.hxhy.log.Logger")){
            return FilterReply.NEUTRAL;
        }else {
            return FilterReply.DENY;
        }
	}

}
